cmake_minimum_required(VERSION 3.18)

project(test_find_package C CXX)

include(CMakePrintHelpers)

# module mode，区分大小写
#[[
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(suba MODULE REQUIRED)
]]


#[[
set(suba_DIR ${PROJECT_SOURCE_DIR}/cmake)
set(suba_ROOT ${PROJECT_SOURCE_DIR}/cmake)
list(APPEND CMAKE_PREFIX_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(suba CONFIG REQUIRED)
]]

cmake_print_variables(SUBA_LIB)
